package com.oscar.web.util;

/**
 * 定义一个类，用来处理日志数据
 * @param <T> 泛型代表Object
 */
public class LogData<T> {

    private String type  ;

    private T data ;

    //全参构造方法
    public LogData(String type, T data) {
        this.type = type;
        this.data = data;
    }

    //get，set方法
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
